package com.huicoo.forestmanager.ui.patrol.forestCampTask.model;

import com.huicoo.forestmanager.network.HttpService;
import com.huicoo.forestmanager.network.bean.patrol.AttachmentEntity;
import com.huicoo.forestmanager.network.bean.patrol.EventTypeBean;
import com.huicoo.forestmanager.network.bean.patrol.RecordDetailsIssuesListBean;
import com.huicoo.forestmanager.network.bean.patrol.ReportEventBean;
import com.huicoo.forestmanager.network.bean.patrol.UploadFileBean;
import com.huicoo.forestmanager.ui.patrol.forestCampTask.contract.ForestCampTaskReportEventContract;

import java.util.HashMap;

import retrofit2.Call;

/**
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2019/4/10		    Administrator
 * 进行巡查任务的model
 */
public class ForestCampTaskReportEventModel implements ForestCampTaskReportEventContract.Model {

    @Override
    public Call<EventTypeBean> getEventType(HashMap<String, String> params) {
        return HttpService.getInstance().getEventType(params);
    }

    @Override
    public Call<UploadFileBean> uploadFile(HashMap<String, String> params, AttachmentEntity attachment) {
        return HttpService.getInstance().uploadFile(params, attachment);
    }

    @Override
    public Call<ReportEventBean> reportEvent(HashMap<String, String> params) {
        return HttpService.getInstance().reportEvent(params);
    }

    @Override
    public Call<RecordDetailsIssuesListBean> getMyReportEvent(HashMap<String, String> params) {
        return HttpService.getInstance().getMyReportEvent(params);
    }
}
